import sys
import random
import numba


item_time = int(sys.argv[1])

@numba.jit()
def Pi(a):
    in_count = 0
    all = 0
    for i in range(0, a):
        ran_num1 = random.uniform(0.0,100.0)
        ran_num2 = random.uniform(0.0,100.0)
        if (pow(ran_num1, 2) + pow(ran_num2, 2)) < 10000:
            in_count = in_count + 1
        all = all + 1
    return in_count, all


# for line in sys.stdin:
#     pass

in_count, all = Pi(item_time)


sys.stdout.write("%s\t%s\n" % ("in", str(in_count)))
sys.stdout.write("%s\t%s\n" % ("all", str(all)))